package com.yeyks.consumer.param;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author fuchangshuai
 * @date 2019/06/13 11:02
 */
@Data
public class BagGiftPayParam implements Serializable {
    private static final long serialVersionUID = 670280185107244921L;

    /**
     * token
     */
    @ApiModelProperty(value = "token", required = true)
    @NotBlank(message = "token输入不能为空")
    private String token;

    @ApiModelProperty(value = "充值订单id", required = true)
    @NotNull(message = "充值订单id不能为空")
    private Integer orderId;

    @ApiModelProperty(value = "付款方式(wxpay, alipay, xcx, gzh)", required = true)
    @NotBlank(message = "付款方式不能为空")
    private String type;

    @ApiModelProperty(value = "app支付不需要传，h5支付必传")
    private String openId;
}
